본 게시글의 원문은 Yann Debray의 MATLAB with Python Book 입니다. 해당 책은 MIT 라이센스를 따르기 때문에 개인적으로 번역하여 재배포 합니다. 본 포스팅에는 추후 유료 수익을 위한 광고가 부착될 수도 있습니다.

MIT License

Copyright (c) 2023 Yann Debray

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

본 게시물에서 활용된 소스 코드들은 모두 Yann Debray의 GitHub Repo에서 확인할 수 있습니다.

3.3. PATH 관리

여러 버전의 파이썬이 설치된 경우, 명령어 python은 PATH 내에서 상위에 있는 버전을 반환합니다. 기본적으로 사용되는 파이썬 버전을 확인하려면:

C:\Users\ydebray>python --version
Python 3.10.10

이를 변경하려면 PATH를 수정해야 합니다.

PATH는 환경 변수에서 편집할 수 있으며, Windows 시작 메뉴의 검색 창에 “path”를 입력하여 찾을 수 있습니다. 사용자 변수 내의 Path를 선택합니다 (이는 시스템 변수 위에 작성되어 있을 것입니다):

파이썬 버전의 나열 순서를 PATH에서 수정할 수 있습니다. 또한 파이썬의 기본 패키지 관리자인 pip에 액세스하려면 Script 폴더도 PATH에 포함되어 있는지 확인하세요: C:\Users\ydebray\AppData\Local\Programs\Python\Python310\Scripts